<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script src="../js/vue.js"></script>
    </head>
    <body>
        <div @keyup.enter="login" >
            <input type="button"  value="登录" @click="login" @keyup="login"  />
        </div>
        <script>
          new Vue({
              el:"div",
              methods:{
                  login:function(e){
                      console.log("-----",e)
                  }
              }
          });
        </script>
    </body>
</html>
